package mavenstudy.dto;

import java.io.Serializable;

/**
 * ProjectName：mavenstudy
 * ClassName：Flight
 *
 * @author：hldiao
 * @date：14:43 2018/7/2
 */
public class Flight implements Serializable{
    /**
     * 航班号
     */
    private String flightNo;
    /**
     * 出发日期
     */
    private String startDate;
    /**
     * 航司
     */
    private String airline;
    /**
     * 始发地
     */
    private String origin;
    /**
     * 目的地
     */
    private String dest;
    /**
     * 舱位
     */
    private String cabin;
    /**
     * 价格
     */
    private double price;

    public String getFlightNo() {
        return flightNo;
    }

    public void setFlightNo(String flightNo) {
        this.flightNo = flightNo;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getAirline() {
        return airline;
    }

    public void setAirline(String airline) {
        this.airline = airline;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getDest() {
        return dest;
    }

    public void setDest(String dest) {
        this.dest = dest;
    }

    public String getCabin() {
        return cabin;
    }

    public void setCabin(String cabin) {
        this.cabin = cabin;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Flight{" +
                "flightNo='" + flightNo + '\'' +
                ", startDate='" + startDate + '\'' +
                ", airline='" + airline + '\'' +
                ", origin='" + origin + '\'' +
                ", dest='" + dest + '\'' +
                ", cabin='" + cabin + '\'' +
                ", price=" + price +
                '}';
    }
}